package com.etc.service;

import java.util.List;

import com.etc.entity.Blog;
import com.etc.entity.BlogComnent;
import com.etc.entity.BlogName;
import com.etc.entity.Restaurant;
import com.etc.utils.PageData;

public interface BlogService {
	public boolean updateByPrimaryKey(Integer blogid);

	public boolean addBlog(Blog blog);

	public PageData<BlogName> selectAllBlog(Integer start, Integer pagesize, String content);

	public boolean updateAudit(Integer bid);

	public int selectCount(String content);

	public List<BlogComnent> selectComment(Integer bid);

	public boolean updateBlog(Blog blog);

	public PageData<Blog> selectPhoto(Integer start, Integer pagesize, String content);

	public List<Blog> getAllBlog();

	/**
	 * 分页查询
	 * 
	 * @param begin
	 * @param sizeTopage
	 * @param matter
	 * @return
	 */
	public PageData<Blog> selectAllBlogByPage(Integer begin, Integer sizeTopage, String matter);

	/**
	 * 查询记录数
	 * 
	 * @param matter
	 * @return
	 */
	public int selectCountByContent(String matter);

	public boolean deleteByPrimaryKey(int bcid);
	/**
	 * 分页查询博客
	 * @param page
	 * @param limit
	 * @return
	 */
	public List<Blog> getBlogByPage(Integer page, Integer limit);
	/**
	 * 查询博客的总数
	 * @return
	 */
	public int getcount();
	/**
	 * 前台页面显示博客信息的方法
	 * @return
	 */
	public List<Blog> getblogs();

}
